@extends('home.layout.layout')
@section('title','版块详情')
@section('con')
	
    <div class="hp-wrap">
            <!--页面主体 -->
            <div class="rel" id="container">
                <div id="container_padd">
                    <!--主体部分 start -->
                    <div id="sidenav_bbs">
                        <div id="bbs_banner">
                            <h4>
                                <a class="h4_t">
                                    版块分类
                                </a>
                            </h4>
                            <ul>
                                <li lid="1" id="l1">
                                    <a href="http://bbs.hupu.com/all-nba">
                                        NBA论坛
                                    </a>
                                </li>
                                
                            </ul>
                        </div>
                       
                    </div>
                    <!-- 右侧 start -->
                    <div id="content">
                        <!--头部-->
                        <div class="bbs_head">
                            <div class="breadCrumbs">
                                <a href="/">
                                    {{$block->sname}}
                                </a>
                                &nbsp;»&nbsp;
                                <a href="/all-gear">
                                    {{$block->bname}}
                                </a>
                                
                            </div>
                            <div class="right">
                                <form action="/home/block/" name="forum_see" enctype="multipart/form-data" method="get" id="forum_see">
                                    <input type="hidden" value="112" name="fid">
                                    <input type="hidden" value="topic" name="type">
                                    <input style="height:23px;" type="text" title="搜索{{$block->bname}}的帖子" value="搜索本版帖子" class="tabs_input" name="q" id="search_thread">
                                    <input type="submit" class="tabs_btn" value="">
                                </form>
                            </div>
                            <div style="margin-right:5px;" class="right" id="googlepub">
                            </div>
                            <h1 class="left">
                                <span fidurl="c2c" fid="112" id="forumname">
                                    {{$block->bname}}
                                </span>
                            </h1>
                            &nbsp;
                            <div style="*height:0;" class="clearfix">
                            </div>
                            <div class="pl_nav ">
                                <span class="pl_d">
                                    &nbsp;
                                </span>
                                <div class="pl_top">
                                    版块介绍：
                                    <span id="des_forum">
                                        {{$block->bintro}}
                                    </span>
                                    <br>
                                    版主：
                                    <a href="http://my.hupu.com/aj4" target="_blank" class="u">
                                        {{$block->username}}
                                    </a>
                                    
                                </div>
                                <div id="navigation">

                                    <span id="nav_change">
                                    公告:
                                        <ul>
                                            <li>
                                                <a target="_blank" href="http://bbs.hoopchina.com/1416453.html">
                                                    {{$block->binfo}}
                                                </a>
                                            </li>
                                        </ul>
                                    </span>
                                    <div class="clear">
                                    </div>
                                </div>
                               
                                
                                
                            </div>
                            <div id="bbs_middle_ad" data-google-query-id="CJOrqq2QvtECFQ8YvAodqw0E6A">
                                
                            <div style="*height:0;" class="clearfix">
                            </div>
                        </div>
                        <!--头部END-->
                        <!-- 标签页 start -->
                        <div id="tabs_header" class="tabs_header zoom">
                            <ul class="left">
                                <li class="selected">
                                    <a href="/home/block/index?bid={{$block->bid}}">
                                        全部
                                    </a>
                                </li>
                                
                                
                            </ul>
                            <div class="right" >
                                <a style="width:90px;" href="/home/post/add?bid={{$block->bid}}" rel="nofollow" class="issue_button" id="g_n">
                                    发新帖
                                </a>
                            </div>
                            <div class="clearfix tabs_border">
                            </div>
                        </div>
                        <!--标签页 end -->
                        <!--内容分类-->
                        <div id="sort">
                            <div class="fr">
                                <form style="display:inline">
                                    <select style="vertical-align:middle; _vertical-align:top;" id="orderway">
                                        <option selected="" value="null">
                                            排序方式
                                        </option>
                                        <option value="lastpost">
                                            按回帖时间排序
                                        </option>
                                        <option value="postdate">
                                            按发帖时间排序
                                        </option>
                                    </select>
                                </form>
                            </div>
                            
                            <div style="*height:0;" class="clearfix">
                            </div>
                        </div>
                        <!--内容分类END-->
                        <!--帖子列表-->
                        <table cellspacing="0" cellpadding="0" border="0" class="bbstopic ptable topiclisttr" id="pl">
                            <tbody><tr class="">
                                <th>
                                    &nbsp;
                                </th>
                                <th align="left">
                                    主题
                                </th>
                                <th width="100" align="left">
                                    作者
                                </th>
                                <th width="110">
                                    回复 / 浏览
                                </th>
                                <th width="85" align="left">
                                    最后回复
                                </th>
                            </tr>
                            </tbody>
                            <tbody>
                                @foreach($posts as $k=>$v)
                                <tr mid="15789491" class="">
                                    <td class="p_chkbox">
                                        &nbsp;
                                    </td>
                                    <td class="p_title" id="">
                                        <div id="15789491sh">
                                        </div>
                                        <font style="color:#b50000">
                                            [置顶]
                                        </font>
                                        <a href="/home/post/info?pid={{$v->pid}}" id="">
                                            <b>
                                                <font color="red">
                                                    {{$v->pname}}
                                                </font>
                                            </b>
                                        </a>
                                        
                                    </td>
                                    <td class="p_author">
                                        <a href="" target="_blank" class="u">
                                            {{$v->username}}

                                        </a>
                                        <br>
                                       
                                        
                                        <?php  echo substr($v->pctime,0,16);  ?>
                                    </td>
                                    <td class="p_re">
                                        {{$v->fnum}} / {{$v->ctr}}
                                    </td>
                                    <td class="p_retime">
                                        <a title="查看最后回复" href="#">
                                             
                                             <?php  echo substr($v->ftime,0,16);  ?>
                                        </a>
                                        <br>
                                        {{$v->fuid}}
                                    </td>
                                </tr>
                               @endforeach
                               @foreach($p as $k=>$v)
                                <tr mid="15789491" class="">
                                    <td class="p_chkbox">
                                        &nbsp;
                                    </td>
                                    <td class="p_title" id="">
                                        <div id="15789491sh">
                                        </div>
                                        <font style="">
                                            [普通]
                                        </font>
                                        <a href="/home/post/info?pid={{$v->pid}}" id="">
                                            <b>
                                                <font color="">
                                                    {{$v->pname}}
                                                </font>
                                            </b>
                                        </a>
                                        
                                    </td>
                                    <td class="p_author">
                                        <a href="" target="_blank" class="u">
                                            {{$v->username}}

                                        </a>
                                        <br>
                                       
                                        <?php  echo substr_replace($v->pctime,'',14,3);  ?>
                                    </td>
                                    <td class="p_re">
                                        {{$v->fnum}} / {{$v->ctr}}
                                    </td>
                                    <td class="p_retime">
                                        <a title="查看最后回复" href="#">
                                             <?php  echo substr_replace($v->ftime,'',14,3);  ?>
                                        </a>
                                        <br>
                                        {{$v->fuid}}
                                    </td>
                                </tr>
                               @endforeach
                            </tbody>
                        </table>
                        <!--帖子列表END-->
                       
                        <div class="page">
                            {!! $p->appends($list)->render() !!}
                        </div>
                        <!-- 主体部分 end -->
                        
                        
                    </div>
                </div>
            </div>
            <!--内容END-->
            <!--页面主体END-->
        </div>

@endsection
@section('js')

@endsection